import 'package:flutter_module/login/userInfo.dart';

class UserManager {
  // 工厂模式
  factory UserManager() =>_getInstance();
  static UserManager get instance => _getInstance();
  static UserManager _instance;

  UserInfo userInfo;

  UserManager._internal() {
    // 初始化
  }
  static UserManager _getInstance() {
    if (_instance == null) {
      _instance = UserManager._internal();
    }
    return _instance;
  }
}